Panda Python - Calculating what percentage of values are true and false out of total in boolean column

67

df['yourcolumns'].value_counts(normalize=True).mul(100).astype(str)+'%'

Comments

Submit
0 Comments